﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Pay.Repository.Entities
{
    /// <summary>
    /// 摩宝代付资金表
    /// </summary>
    [Table("pay_mobaoFundOut"), Comment("摩宝代付资金表 ")]
    public class MobaoFundOut : EfEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Comment("用户ID")]
        public long UserId { get; set; }

        /// <summary>
        /// 银行卡号
        /// </summary>
        [Comment("银行卡号"), MaxLength(50)]
        public string AccInNo { get; set; }

        /// <summary>
        /// 银行卡名称
        /// </summary>
        [Comment("银行卡号"),MaxLength(50)]
        public string AccInName { get; set; }

        /// <summary>
        /// 交易类型 1:对私；2:对公
        /// </summary>
        [Comment("交易类型 1:对私；2:对公")]
        public int Type { get; set; }

        /// <summary>
        /// 交易金额
        /// </summary>
        [Comment("交易金额"), Column(TypeName = "decimal(18,2)")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 交易摘要
        /// </summary>
        [Comment("交易摘要"), MaxLength(200)]
        public string TradeSummer { get; set; }
        /// <summary>
        /// 商户交易单号
        /// </summary>
        [Comment("商户交易单号"), MaxLength(50)]
        public string MerchTradeNo { get; set; }

        /// <summary>
        /// 摩宝交易单号
        /// </summary>
        [Comment("摩宝交易单号"), MaxLength(50)]
        public string OrderOutNo { get; set; }

        /// <summary>
        /// 交易状态
        /// </summary>
        [Comment("交易状态"),MaxLength(50)]
        public string OrderStatus { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime TradeTime { get; set; }
    }
}
